package com.lj.service;

import com.lj.entity.Warehouse;
import org.springframework.web.bind.annotation.RequestParam;

import java.util.List;

/**
 * <p>Title: </p>
 * <p>Description:</p>
 *
 * @author <a href="mailTo:bingxuewulei@outlook.com">wanglei</a>
 * @version 1.0
 * @history: Created by wanglei on  2021/11/14
 */
public interface WarehouseService {
    /**
     * 查询全部信息
     * @return
     */
    List<Warehouse> queryAllWarehouse();

    /**
     * 新增
     * @param warehouse
     * @return
     */
    int addWarehouse(Warehouse warehouse);

    /**
     * 更新
     * @param id
     * @return
     */
    Warehouse findWarehouseDetail(@RequestParam("id") int id);

    /**
     * 删除
     * @param id
     * @return
     */

    int deleteWarehouse(@RequestParam("id") int id);

    /**
     * 更新
     * @param emp
     * @return
     */
    int updateWarehouse(Warehouse emp);
}
